﻿@model SIFIET.Models.ChangePasswordModel

@{
    ViewBag.Title = "Change Password";
}

<h2>Cambiar Contraseña</h2>
<p>
    Utilice este formulario para cambiar su contraseña. 
</p>
<p>
    Por favor recuerde que las contraseñas requieren minimo de @Membership.MinRequiredPasswordLength caracteres de longitud.
</p>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true, "")
    <div>
        <fieldset>
            <legend>Información de Cuenta</legend>
            <div></div>
            <div class="alert error">@TempData["Error"]</div> 

            <div class="editor-label">
                @Html.LabelFor(m => m.OldPassword)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.OldPassword)
                @Html.ValidationMessageFor(m => m.OldPassword)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.NewPassword)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.NewPassword)
                @Html.ValidationMessageFor(m => m.NewPassword)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.ConfirmPassword)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.ConfirmPassword)
                @Html.ValidationMessageFor(m => m.ConfirmPassword)
            </div>
            <div></div>
            
        </fieldset>
        <div>
                <input type="submit" value="Cambiar" class = "ebutton blue"/>
                <input type="button" value="Cancelar" onclick="history.go(-1)" class="ebutton blue" />
            </div>
    </div>
    }
